//
//  MessageTableViewCell.m
//  renmingongshe
//
//  Created by macbook on 2017/11/3.
//  Copyright © 2017年 xiaodian. All rights reserved.
//

#import "MessageTableViewCell.h"

@implementation MessageTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)cellConfigureDic:(NSDictionary *)dic
{
    if ([dic[@"msgStatus"] boolValue]) {
        _ReadView.hidden = YES;
        _TypeLabel.text = @"消息已读";
    }else{
        _ReadView.hidden = NO;
        _TypeLabel.text = @"您有新的消息";
    }
    
    _ContentLabel.text = [NSString stringWithFormat:@"%@", dic[@"msgContent"]];
    _DateLabel.text = [NSString stringWithFormat:@"%@", dic[@"createTime"]];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
